package top.gangster.lunan.templateservice.feign.imp;

import org.springframework.stereotype.Component;
import top.gangster.lunan.result.Result;
import top.gangster.lunan.templateservice.feign.UserClient;

@Component
public class UserClientImpl implements UserClient {

	/**
	 * 下列方法会在Feign调用失败时执行
	 */
	@Override
	public Result getUserById(String id) {
		return Result.error().message("user feign调用失败");
	}
}
